from threading import Thread
from time import sleep

def doublePrint(name,age):
    for i in range(10):
        print(f"信息：【{(name+str(age))*2}】")
        sleep(0.9)

def info(name,age):
    for i in range(10):
        print(f"信息：姓名【{name}】，年龄【{age}】")
        sleep(1.2)

if __name__ == '__main__':
    # 位置传参，参数是一个元组，元组中的顺序要和方法参数顺序一致
    thread1 = Thread(target=doublePrint,args=('Tom' ,12))
    thread1.start()

    # 关键字传参，
    thread2 = Thread(target=info,kwargs={'age':11,'name':'Jurry'})
    thread2.start()
